package com.vdong.trade.trading.facade.enums;

/**
 *
 */
public enum SettlementStatusEnum {

    NO_SETTLEMENT("未结算", new Byte("0")),
    ALREADY_SETTLEMENT("已结算", new Byte("1"));

    private String state;
    private Byte value;

    private SettlementStatusEnum(String state, Byte value) {
        this.state = state;
        this.value = value;
    }

    public static SettlementStatusEnum getEnum(int value) {
        for (SettlementStatusEnum requisitionConstant : SettlementStatusEnum.values()) {
            if (requisitionConstant.getValue() == value) {
                return requisitionConstant;
            }
        }
        return null;
    }

    public Byte getValue() {
        return value;
    }

    public String getState() {
        return state;
    }
}
